package com.itlao5.budtrip;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomNavigationView;
import android.support.v7.app.AppCompatActivity;
import android.view.MenuItem;
import android.widget.TextView;

import butterknife.BindView;

public class MainActivity extends BaseActivity {

    @BindView(R.id.navigation)
    private BottomNavigationView navigation;
    @BindView(R.id.message)
    private TextView message;

    private BottomNavigationView.OnNavigationItemSelectedListener mOnNavigationItemSelectedListener
            = new BottomNavigationView.OnNavigationItemSelectedListener() {

        @Override
        public boolean onNavigationItemSelected(@NonNull MenuItem item) {
            switch (item.getItemId()) {
                case R.id.navigation_home:
                    return true;
                case R.id.navigation_dashboard:
                    return true;
                case R.id.navigation_notifications:
                    return true;
            }
            return false;
        }
    };

    @Override
    int getLayoutResId() {
        return R.layout.activity_main;
    }

    @Override
    void initData(Bundle savedInstanceState) {

    }

    @Override
    void initView(Bundle savedInstanceState) {

    }

    @Override
    void setListener() {
        navigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener);
    }

    private void getBusData() {

    }
}
